package creational.builder;

/**
 * 购物发票
 */
public class Invoice {
    private String type;
    private Integer doors;
    private Integer windows;
    private Integer room;
    private Boolean garden;


    public Invoice(String type, Integer doors, Integer windows, Integer room, Boolean garden) {
        this.type = type;
        this.doors = doors;
        this.windows = windows;
        this.room = room;
        this.garden = garden;
    }

    @Override
    public String toString() {
        return "房子发票{" +
                "type='" + type + '\'' +
                ", doors=" + doors +
                ", windows=" + windows +
                ", room=" + room +
                ", garden=" + garden +
                '}';
    }

    public void print(){
        System.out.println("打印发票:");
        System.out.println(this);
    }
}
